<template>
	<view class="page1">
		<view class="item-box">
			<view class="item">


				<image class="left-item" src="@/static/toolSet/plc.png"></image>


				<view class="right-item">
					<view class="title">查控制器</view>
					<view @click="plcClick" class="btn">
						<view>去查看</view>
						<image class="img" src="../../../static/toolSet/arrow.png"></image>
					</view>
				</view>
			</view>
			<view class="item">

				<image class="left-item" src="@/static/toolSet/io.png"></image>

				<view class="right-item">
					<view class="title">查I/O模块</view>
					<view @click="ioClick" class="btn">
						<view>去查看</view>
						<image class="img" src="../../../static/toolSet/arrow.png"></image>
					</view>
				</view>
			</view>
		</view>

	</view>
</template>

<script>
	export default {
		data() {
			return {


			}
		},
		mounted() {


		},
		onLoad() {
			var login = this.checkLogin();
			if (!login) {
				return false;
			}

		},
		methods: {
			ioClick(e) {


				uni.navigateTo({
					url: '/subpackage/tool/wind/windIo'
				})
			},
			plcClick(e) {
				uni.navigateTo({
					url: '/subpackage/tool/wind/windPlc'
				})
			},
			navigateBack() {
				uni.navigateBack()
			},
		},
	}
</script>


<style lang="scss">
	.page1 {
		height: 100vh;

		background-color: #F7F7F7;

	}

	.item-box {

		margin-left: 20px;
		margin-right: 20px;
		padding-top: 20px;
	}

	.item {
		background-color: #FFFFFF;
		border-radius: 10upx;
		height: 280upx;
		display: flex;
		flex-direction: row;
		align-items: center;
		text-align: center;
		justify-content: space-around;
		margin-top: 20upx;

		.left-item {

			width: 240upx;
			height: 240upx;
		}

		.right-item {

			.title {
				font-weight: bold;
				font-size: 34upx;
				font-family: PingFang SC;
				color: #333333;

			}

			.btn {
				background: #3BA2FF;
				border-radius: 30rpx;
				width: 180rpx;
				height: 60rpx;
				font-size: 30upx;
				font-family: PingFang SC;
				color: #FFFFFF;
				margin-top: 40upx;
				display: flex;
				flex-direction: row;
				align-items: center;

				justify-content: center;

				.img {
					margin-left: 10rpx;
					width: 12rpx;
					height: 21rpx;
				}
			}

		}
	}
</style>
